<html>
<head>
<title>添加任务</title>
{% include "systy.html" %}
<script charset="utf-8" src="/bootstrap/js/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/bootstrap/js/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="/bootstrap/js/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
{% ifnotequal username None%}
{% include "head3.html" %}

<div class="taskadd_div">
    <form action="" method="post">
    <div class="location_div">位置：任务系统 >> 发布任务 </div>
        <table width="100%">
            <tr>
            <td>
                <div class="input-group">
                    <span class="input-group-addon">任务名</span><input type="text" name="taskname" class="taskadd_taskname form-control" placeholder="请输入你的任务名">
                </div>
            </td>
            </tr>
            <tr>
                <td>
                    <div class="tadkadd_div2">
                        <div class="input-group">
                            <span class="input-group-addon">责任人</span>
                            <select name="select2" id="select2">
                                <option selected value="-1">选择负责人</option>
                                {% for i in userall %}
                                    {% ifnotequal i.name username %}<option value="{{i.name}}">{{i.name}}</option>{% endifnotequal %}
                                {% endfor %}
                            </select>
                        </div>
                    </div>
                    <div class="tadkadd_div3">
                        <div class="input-group">
                            <span class="input-group-addon">紧急状态</span>
                            <select name="select3" id="select3">
                                <option selected value="-1">选择状态</option>
                                <option value="1">不急</option>
                                <option value="2">紧急</option>
                                <option value="3">很急</option>
                            </select>
                        </div>
                    </div>
                    <div class="tadkadd_div4">
                        <div class="input-group">
                            <div class="input-group date form_datetime col-md-5">
                                <span class="input-group-addon">完成时间</span>
                                <input type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="time" class="form-control" placeholder="选择任务完成时间">
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td></br><textarea name="content"></textarea></td>
            </tr>
        </table>
        <div class="taskadd_botton">
            <button type="submit" class="btn btn-primary btn-sm"> 发布任务 </button>
        </div>
    </form>
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}
</div>
<script>
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('textarea[name="content"]', {
            uploadJson : '/upload.html',
            fileManagerJson : '/filemanager.html',
            allowFileManager : true,
            afterBlur:function(){this.sync();}
        });
    });
</script>
</body>
</html>